package org.test.client.ui.content.table.bstable;

import java.awt.Color;

import org.test.client.ui.util.Icons;

public class ColorfulInfo{
	public String info;
	public Color backColor = gray;
	public Color fontColor = Color.WHITE;
	
	
	
	public ColorfulInfo(String info){
		this.info = info;
	}
	
	
	
	public ColorfulInfo(String info,int type){
		this.info = info;
		backColor = colors[type];
	}
	
	
	public final static int TYPE_DEFAULT = 0;
	public final static int TYPE_SUCCESS = 1;
	public final static int TYPE_WARNING = 2;
	public final static int TYPE_IMPORTANT = 3;
	public final static int TYPE_INFO = 4;
	
	
	public static Color gray = Icons.getColor("999999");
	public static Color green = Icons.getColor("73a839");
	public static Color orange = Icons.getColor("dd5600");
	public static Color red = Icons.getColor("c71c22");
	public static Color blue = Icons.getColor("033c73");
	
	public static Color[] colors = {gray,green, orange, red, blue };
	
	@Override
	public String toString() {
		return info;
	}
}